home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
gdb
/
gdb_18s.zoo
/
signal.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-25
|
1KB
|
56 lines
/*
* Cross Development System for Atari ST
* Copyright (c) 1988, Memorial University of Newfoundland
*
* Beware the SIGINT/SIGQUIT - right now they only work when you are read()ing
*
*
* much hacked by jrd
* further hacked by jrb
*/
#define NSIG 13
#define SIGNULL 0 /* The null signal */
#define SIGALRM 1 /* If SIGALRM changes, change the value
* in lib/libc/atari/alrm_nasty.s too!
*/
/* this block are just trap numbers. I made up most of these names... */
#define SIGBUS 2
#define SIGODD 3
#define SIGILL 4
#define SIGZDIV 5
#define SIGCHK 6
#define SIGTRAPV 7
#define SIGPRIV 8
#define SIGTRACE 9
#define SIGBPT 10
#define SIGTRAP SIGTRACE /* who knows??? */
#define SIGIOT SIGBPT /* I think this is sort of right */
#define SIGEMT SIGBPT /* ditto */
#define SIGINT 11 /* ^C (struct tchars t_intc) */
#define SIGQUIT 12 /* ^\ (struct tchars t_quitc) */
/* some values that Eunuchs programs seem to want */
#define SIGHUP SIGNULL
#define SIGFPE SIGNULL
#define SIGSEGV SIGNULL
#define SIGSYS SIGNULL
#define SIGTERM SIGNULL
#ifndef _COMPILER_H
#include <compiler.h>
#endif
typedef void (*__Sigfunc) __PROTO((int signum));
typedef short sig_atomic_t;
#define SIG_DFL (__Sigfunc)0
#define SIG_IGN (__Sigfunc)1
#define SIG_ERR ((__Sigfunc)-1)
#define BADSIG SIG_ERR
__EXTERN __Sigfunc signal __PROTO((int sig, __Sigfunc func));